package com.yh.patterns.state.job;

/**
 * @Author:云尚
 * @Description:初级状态类
 */
public class PrimaryState extends State{
    public PrimaryState(Player player) {
        //初始状态
        this.rankName="入门级";
        this.player=player;
        point=0;
    }
    public PrimaryState(State state) {
        this.rankName="入门级";
        this.player=state.player;
        point=state.point;
    }
    @Override
    public void checkState(int point) {
        if (point>=30) {
            player.setState(new SecondaryState(this));
        }
    }
}
